the book that teach VC are described, and Google is also very satisfied.
This section describes the color palette and image data.
There is a palette for non-true color bitmaps. The format of the palette is as follows:
Typedef struct tagrgbquad {
Byte rgbblue; // blue weightByte rgbgreen; // green componentByte rgbred; // red weightByte rgbreserved; // The reserv
we know that the true color map contains up to 2^24 color, how to choose 256 colors, but also make the color distortion is relatively small, this is a more complex problem. A simple practice is to r:g:b in 3:3:2, that is, take r,g high 3 bits, b high two bits, composed of a byte, so it can represent 256 colors, but it
Example program final effect diagram:
has been looking for the production of a 24bit and above true Color tool bar simple and effective method, in various VC sites have found a lot about this article and introduction, but there is a shortage of places, the introduction of the detailed, for beginners is a bit difficult. Recently found, so here will be their own in the production of the Real
I was there n years ago. I forgot. I just got it back.
In fact, VB only supports up to 256 colors, and the true color icon requires more complicated settings. The color base of 256 is enough. However, many icons found are very ugly in VB, and the color and resolution are very poor. For some reason, the
C/C ++ BMP (24-bit true color) Image Processing (4) ------ image rotate ,------
After more than a month, CSDN seems to have finally fixed the BUG of returning the reading amount of the article list to zero, so it is almost impossible to put an article written at the end of the big job to test the effect, don't try again like the last one!
This article is about image rotation, which is not a fresh question.
Previously, when I used PNG images as the tool bar, I downloaded multiple tools and used multiple processes. Due to compatibility with the BCG library, the effect was not very good, because the image will appear in the background, it is quite unfriendly (it is difficult to see). After suffering from all the difficulties, I finally made the True Color toolbar, but I need to add icons in the past two days, I
image points to the position of the image before rotation is basically not likely to be positive, so it is necessary to use bilinear interpolation (the theory of the specific analysis in the previous article in detail mentioned).The main code is as follows:/******************* image rotation ******************/int centerofrotation_x = mydraw_width/2;//Rotation Center x coordinate int centerofrotation_y = mydraw_height/2;//Rotation Center y-coordinate double degree = 60;//counterclockwise rotati
Introduction
Delphi is currently widely used visual development tools, it itself with a picture, icon editor--image Editor, but to Delphi7 so far, can not be true Color icon editor, it is a pity. Through the research of the icon file, the author realizes the 24-bit true color icon.
Format of icon file
First, analyze
The source code execution effect diagram is as follows:
and vckbase contact for a long, is always greedy to dig from the use of Dongdong, but did not think of their own things to share with people, very embarrassed.
Since my rangerchat point to point Chat tool in Vckbase, I have received letters from many friends. Many of them say that looking at so much code at once doesn't really know how to extract what they want from it. Now I have some good resources in the process of doing the project
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.